using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Links_aspx : System.Web.UI.Page  {

    protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e)
    {
        if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
        {
            DataRowView d = (DataRowView)e.Item.DataItem;

            ObjectDataSource temp = (ObjectDataSource)e.Item.FindControl("ObjectDataSourceLinks");

            temp.SelectParameters["ID"].DefaultValue = d[0].ToString();

        }
    }
}